package com.vm.osm.business.util;

import com.vm.osm.business.dto.CreateNotifyReq;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;


/**
 * Created by chenzui on 2018/5/22.
 */
@Service
public class NotifyUtil {

    private static Logger LOG = Logger.getLogger(NotifyUtil.class);

    @Value("${mc_api_url}")
    private String mcApiUrl;

    public void send(CreateNotifyReq createNotifyReq){
        LOG.info("【行业】（获取行业列表）");
        String URL = mcApiUrl + "/mc/v1.0/notify";
        createNotifyReq.setSubtitle(createNotifyReq.getContent());
        LOG.info(HttpUtil.httpPostReq(URL,createNotifyReq));
    }
}
